package com.easyweb.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyweb.dao.TouTiaoDao;
import com.easyweb.service.TouTiaoService;

@Service
public class TouTiaoServiceImpl implements TouTiaoService{

	@Autowired
	private TouTiaoDao touTiaoDao;
	
	public List<Map<String, Object>> getSectionAvg() {
		return touTiaoDao.getSectionAvg();
	}

	public List<Map<String, Object>> getTypeAvg() {
		return touTiaoDao.getTypeAvg();
	}

	public int getAuthorCount() {
		return touTiaoDao.getAuthorCount();
	}

	public int getArticleCount() {
		return touTiaoDao.getArticleCount();
	}

}
